		const rules = {
			name: [{
				required: true,
				message: '请输入用户名',
				trigger: 'blur'
			}],
			jobnum: [{
					required: true,
					message: '请输入工号',
					trigger: 'blur'
				},
				{
					min: 3,
					max: 5,
					message: '长度在 3 到 5 个字符',
					trigger: 'blur'
				}
			],
			sex: [{
				required: true,
				message: '请选择性别',
				trigger: 'change'
			}],
			usertel: [{
					required: true,
					message: '请输入手机号',
					trigger: 'blur'
				},
				{
					pattern: /^1(3\d|47|5((?!4)\d)|7(0|1|[6-8])|8\d)\d{8,8}$/,
					required: true,
					message: '请输入正确的手机号',
					trigger: 'blur'
				}
			],
			email: [{
					required: true,
					message: '请输入邮箱',
					trigger: 'blur'
				},
				{
					pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
					required: true,
					message: '请输入正确的邮箱',
					trigger: 'blur'
				}
			],
			postid: [{
				required: true,
				message: '请选择岗位',
				trigger: 'blur'
			}],
			demid: [{
				required: true,
				message: '请选择部门',
				trigger: 'blur'
			}],
			superior: [{
				required: true,
				message: '请选择直属上级',
				trigger: 'blur'
			}],
			company: [{
				required: true,
				message: '请选择公司',
				trigger: 'blur'
			}],
			roleid: [{
				required: true,
				message: '请选择级别',
				trigger: 'blur'
			}],
			salary: [{
					required: true,
					message: '请输入薪水',
					trigger: 'blur'
				},
				{
					min: 3,
					max: 8,
					message: '长度在 3 到 8 个字符',
					trigger: 'blur'
				}
			],

			hiredate: [{
				type: 'date',
				required: true,
				message: '请入职时间',
				trigger: 'blur'
			}],
			birthdate: [{
				type: 'date',
				required: true,
				message: '请选择出生日期',
				trigger: 'blur'
			}]
		}

		export {
			rules
		}